package com.itheima.treesetdemo;

import java.util.Iterator;
import java.util.TreeSet;

/**
 * Tree 集合存储Student类型
 */
public class TreeSetDemo3 {
    public static void main(String[] args) {
        String s1 = "aaa";
        String s2 = "ab";
        String s3 = "ba";

        System.out.println(s1.compareTo(s2));;
        System.out.println(s3.compareTo(s2));;
        System.out.println(s2.compareTo(s3));;
    }
}
